{template header}


<div class="container">


    <div class="panel panel-default">
        <div class="panel-body">
<div class="onecate">

<ul>
<li><a href="{tsUrl('study')}">首页</a></li>
{loop $arrOneCate $key $item}
<li>
<a href="{tsUrl('study','cate',array('id'=>$item['cateid']))}">{$item['catename']}</a>
</li>
{/loop}
<li class="create"><a href="{tsUrl('study','create')}">创建课程</a></li>
</ul>
</div>
</div>
</div>

<div class="clear"></div>

    <div class="panel panel-default">
        <div class="panel-heading">推荐课程</div>
        <div class="panel-body">


    <div  class="row kecheng">
        {loop $arrRecommendStudy $key $item}
        <div class="col-md-3">


            <div class="thumbnail">

                <div class="photo"><a href="{tsUrl('study','show',array('id'=>$item['studyid']))}">
                    {if $item['photo']}
                    <img src="{php echo tsXimg($item['photo'],'study','255','140',$item['path'],'1')}" />
                    {else}
                    <img alt="{$item['studyname']}" src="{SITE_URL}app/study/skins/default/kecheng.gif">
                    {/if}
                </a>
                </div>
                <p class="title"><a title="{item['studyname']}" href="{tsUrl('study','show',array('id'=>$item['studyid']))}">{$item['studyname']}</a></p>
                <p class="c9">
                    <span>学员：{$item['count_learn']}</span>
                    <span>课时：{$item['count_lesson']}</span>
                    <span><a title="{$item['user']['username']}" href="{tsUrl('user','topic',array('id'=>$item['user']['userid']))}">{$item['user']['username']}</a></span>
                </p>


            </div>


        </div>
        {/loop}
    </div>




</div>
</div>

    <div class="panel panel-default">
        <div class="panel-heading">热门课程</div>
        <div class="panel-body">


<div  class="row kecheng">
{loop $arrHotStudy $key $item}
<div class="col-md-3">


    <div class="thumbnail">

<div class="photo"><a href="{tsUrl('study','show',array('id'=>$item['studyid']))}">
{if $item['photo']}
<img src="{php echo tsXimg($item['photo'],'study','255','140',$item['path'],'1')}" />
{else}
<img alt="{$item['studyname']}" src="{SITE_URL}app/study/skins/default/kecheng.gif">
{/if}
</a>
</div>
<p class="title"><a title="{item['studyname']}" href="{tsUrl('study','show',array('id'=>$item['studyid']))}">{$item['studyname']}</a></p>
<p class="c9">
<span>学员：{$item['count_learn']}</span>
<span>课时：{$item['count_lesson']}</span>
<span><a title="{$item['user']['username']}" href="{tsUrl('user','topic',array('id'=>$item['user']['userid']))}">{$item['user']['username']}</a></span>
</p>


</div>


</div>
{/loop}
</div>


</div>
</div>




    <div class="panel panel-default">
        <div class="panel-heading">最新课程</div>
        <div class="panel-body">
<div  class="row kecheng">
{loop $arrNewStudy $key $item}
<div class="col-md-3">
    <div class="thumbnail">
<div class="photo">
<a href="{tsUrl('study','show',array('id'=>$item['studyid']))}">
{if $item['photo']}
<img src="{php echo tsXimg($item['photo'],'study','255','140',$item['path'],'1')}" />
{else}
<img alt="{$item['studyname']}" src="{SITE_URL}app/study/skins/default/kecheng.gif">
{/if}
</a>
</div>
<p class="title"><a title="{item['studyname']}" href="{tsUrl('study','show',array('id'=>$item['studyid']))}">{$item['studyname']}</a></p>
<p class="c9">
<span>学员：{$item['count_learn']}</span>
<span>课时：{$item['count_lesson']}</span>
<span><a title="{$item['user']['username']}" href="{tsUrl('user','topic',array('id'=>$item['user']['userid']))}">{$item['user']['username']}</a></span>
</p>
</div>
</div>
{/loop}
</div>
</div>
</div>



</div>

{template footer}